﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SenerPro;

namespace MensUnoShop.Models.DBA
{
    public class DBKeyword
    {
        private DataClassesMenDataContext _dc;
        private Logger _log = new Logger(Config.logpath);

        public List<UHotKey> GetManagerHotKeyList()
        {
            using (_dc = new DataClassesMenDataContext(Config.connString))
            {
                List<UHotKey> hklist = new List<UHotKey>();
                try
                {
                    hklist = _dc.UHotKey.ToList();
                }
                catch (Exception ex)
                {
                    _log.RecordExceptionFormat(_log.DBExceptionPath, "GetManagerHotKeyList", ex.ToString());
                }
                return hklist;
            }
        }
    }
}
